package test1;

import test2.Tests;

public class Test extends Tests {
    public void func1(){//不是静态方法无法在类内直接调用
        Tests tests = new Tests();//父类对象的创建
        //System.out.println(tests.a);//error
        System.out.println(super.a);
    }
    public static void main(String[] args) {
       // System.out.println(tests.a);//error
        Test test = new Test();
        test.func1();
    }
}
